<?php

function echo1 ($a, $b, ...$c) {
    echo "<div>{$a} - ${b}</div>";
    print_r($c); // $c 是数组类型的
    $total=0;
    foreach($c as $value){
        $total+=$value;
    }
    return $a+$b+$total;
}
echo echo1(1,2,3,4,5,6);

?>
